<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>小程序商城</title>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="apple-mobile-web-app-title" content="小程序商城"/>
    <link rel="icon" type="image/png" href="/favicon.ico"/>
    <link rel="stylesheet" href="/static/admin/css/base.css"/>
    <link rel="stylesheet" href="/static/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/admin/css/fonts.css">
    {block name="style"}{/block}         
</head>

<body>
<div class="layer-g tpl-g">
    <!-- 头部 -->
    <header class="tpl-header">
        <!-- 右侧内容 -->
        <div class="tpl-header-fluid">
            <!-- 侧边切换 -->
            <div class="layer-fl tpl-header-button switch-button">
                <i class="fa fa-outdent"></i>
            </div>
            <!-- 刷新页面 -->
            <!--<div class="layer-fl tpl-header-button refresh-button">
                <i class="fa fa-refresh"></i>				
            </div>-->
            <!-- 其它功能-->
            <div class="tpl-header-navbar">
                <ul>
                    <!-- 欢迎语 -->
                    <li class="layer-text-sm tpl-header-navbar-welcome">
                        <a href="{:url('User/updatePassword')}">欢迎你，<span>{:session('user_auth.username')}</span>
                        </a>
                    </li>
                    <li class="layer-text-sm">
                        <a href="{:url('Clear/delcache')}" class="ajax-action">
                            <i class="fa fa-trash"></i> 清空缓存
                        </a>
                    </li>
                    <!-- 退出 -->
                    <li class="layer-text-sm">
                        <a href="{:url('Login/logout')}" class="ajax-action">
                            <i class="fa fa-power-off"></i> 退出
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </header>
    <!-- 侧边导航栏 -->
    <div class="left-sidebar dis-flex">
        <!-- 一级菜单 -->
        <ul class="sidebar-nav">
            <li class="sidebar-nav-heading">HiCART</li>
           	{volist name="__MENU__.main" id="menu"}
            <li class="sidebar-nav-link">
                <a href="{$menu.url}" {if($menu['id'] == $path[0]["id"])}class="active"{/if}>
                	<i class="sidebar-nav-link-logo menu-icon fa {$menu.icon}"></i>{$menu.title}
            	</a>
            </li>
            {/volist}			
		</ul>
        <!-- 子级菜单-->
        {notempty name='__MENU__.operater'}        
        <ul class="left-sidebar-second">
            <li class="sidebar-second-title">{$path[0]['tip']}</li>
            <li class="sidebar-second-item">
                <!-- 二级菜单-->
                {volist name="__MENU__.operater" id="submenu"}                    
                <div class="sidebar-third-item">
                    <a href="{empty name='submenu.url'}javascript:void(0);{else/}{$submenu.url}{/empty}" class="sidebar-nav-sub-title {if($submenu['id'] == $path[1]["id"])}active{/if}">
                        {notempty name="submenu.operater"}
                        <i class="fa fa-caret-right"></i>
                        {/notempty}
                        {$submenu.title}
                    </a>
                    <!-- 三级菜单-->
                    {notempty name="submenu.operater"}
                    <ul class="sidebar-third-nav-sub">
                        {volist name="submenu.operater" id="menu"}
                        <li>
                            <a class="{if($menu['id'] == $path[2]["id"])}active{/if}" href="{$menu.url}">
                            {$menu.title}</a>
                        </li>
                        {/volist}
                    </ul>
                    {/notempty}
                </div>
                {/volist}                
            </li>
        </ul>
        {/notempty}
	</div>
    <!-- 内容区域 start -->
    <div class="tpl-content-wrapper {empty name='__MENU__.operater'}no-sidebar-second{/empty}">
        {block name="body"}{/block}
    </div>
    <!-- 内容区域 end -->
</div>
<script src="/static/libs/layui/layui.all.js"></script>
<script src="/static/libs/jquery.min.js"></script>
<script src="/static/libs/common.js"></script>
{block name="js"}{/block}
</body>
</html>	